// 获取用户数据
export const getUserList = `
query($staff_id:Int,$page:Int,$start:String,$end:String,$label:String,$line:String,$cart_code:String,$nickname:String,$mobile:String){
    getUserList(staff_id:$staff_id,page:$page,start:$start,end:$end,label:$label,line:$line,cart_code:$cart_code,nickname:$nickname,mobile:$mobile){
    list{
    id
    avatar
    nickname
    cart_code
    line
    label
    filling_time
    createtime
    zhitui_name
    mobile
    driver_id
    type
    image
    }
    total
    lastpage
  }
}
`;
//获取用户筛选数据
export const getUserSearch = `
query($staff_id:Int){
getUserSearch(staff_id:$staff_id){
    type
    name
    data{
        name
        value
    }
}
}
`;
//用户统计数据
export const getUserData = `
query($staff_id:Int){
   getUserData(staff_id:$staff_id){
    type
    data{
        name
        value
        labelShow
    }
}
}
`;
//获取用户信息
export const getUserInfo = `
query($user_id:Int){
getUserInfo(user_id:$user_id){
    id
    driver_id
    avatar
    nickname
    cart_code
    line
    label
    filling_time
    createtime
    mobile
    des
    image
}
}
`;
//用户备注
export const getUserDes = `
query($user_id:Int,$page:Int){
getUserDes(user_id:$user_id,page:$page){
    list{
        id
        des
        createtime
    }
    total
    lastpage
}
}
`;
//我的团队
export const getStaffUserList = `
query($staff_id:Int,$page:Int){
getStaffUserList(staff_id:$staff_id,page:$page){
    list{
        id
        nickname
        avatar
        zhitui_bfb
        staff_driver_withdrawal
        is_show
        child_list{
            id
            nickname
            avatar
            jiantui_bfb
            staff_driver_withdrawal
        }
    }
    lastpage
    total
}
}
`;
//用户的分享信息
export const getStaffUsers = `
query($staff_id:Int,$driver_id:Int){
getStaffUsers(staff_id:$staff_id,driver_id:$driver_id){
    id
    driver_id
    nickname
    zhitui_name
    avatar
    zhitui_bfb
    jiantui_bfb
    staff_driver_freeze
    staff_driver_withdrawal
}
}
`;
//获取用户标签
export const getStaffUsersLabel = `
query($staff_id:Int,$user_id:Int){
getStaffUsersLabel(staff_id:$staff_id,user_id:$user_id){
    line{
        id
        name
        type
    }
    cart{
        id
        name
        type
    }
    label{
        id
        name
        type
    }
}
}
`;